package org.xinjiang.data.migration.hainan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

/**
 * 行政区划表
 *
 * @author lbw
 * @date 2024-02-16 21:59:02
 */
@Data
@FieldNameConstants
@TableName("LOC_AREA")
@Schema(description = "电子围栏区域表")
public class HnLocAreaEntity implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    @Schema(description = "主键ID")
    private Long id;

    /**
     * 地区名称
     */
    @Schema(description = "地区名称")
    private String name;

    /**
     * 父部门地区编码
     */
    @Schema(description = "父部门地区编码")
    @TableField(value = "pid")
    private String pid;

    /**
     * 围栏列表
     */
    @Schema(description = "围栏列表")
    @TableField(value = "area_detail")
    private String areaDetail;
}
